﻿using Basic.FlowApplication.Interface;
using Basic.FlowRemoteModel.Application;
using Basic.FlowRemoteModel.Application.Model;
using WeDonekRpc.Client.Interface;

namespace Basic.FlowApplication.RpcEvent
{
    internal class CreateAuditEvent : IRpcApiService
    {
        private readonly IAppAuditCreateService _Service;

        public CreateAuditEvent ( IAppAuditCreateService service )
        {
            this._Service = service;
        }

        public CreateAuditResult CreateAudit ( CreateAudit obj )
        {
            return this._Service.CreateFlow(obj.Datum, obj.User);
        }
    }
}
